package vn.ikame.android.adapter;

import vn.ikame.android.truyenf17.R;
import android.content.Context;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

public class CustomStoryView extends LinearLayout {
    public TextView name;
    public TextView author;
    public ImageView image;
    public CustomStoryView(Context context) {
        super(context);
        
        //Sử dụng LayoutInflater để gán giao diện trong list.xml cho class này 
        LayoutInflater li = (LayoutInflater) this.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        li.inflate(R.layout.listview_story, this, true);
        
        //Lấy v�? các View qua Id
        name = (TextView) findViewById(R.id.story_name);
        author = (TextView) findViewById(R.id.story_author);
        image = (ImageView) findViewById(R.id.story_image);
    }
}

